const { validIncorrectParameter } = require('@utils/tools');

const { goodsSchema } = require('./goods.schema');

module.exports = {
  async validator(ctx, next) {
    const valid = validIncorrectParameter(goodsSchema, ctx);

    !valid && (await next());
  },
};
